package com.xiyoufang.club.utils;

import com.xiyoufang.club.bean.RoomInfo;

import java.util.concurrent.ConcurrentHashMap;

public class UserSessionMap extends  ConcurrentHashMap<String, RoomInfo>{
    private static final long serialVersionUID = 1L;
    private static UserSessionMap sessionMap;

    private UserSessionMap() {

    }

    public static UserSessionMap getInstance() {
        if (sessionMap == null) {
            sessionMap = UserSessionMap.Single.access$100();
        }

        return sessionMap;
    }


    static final class Single {
        private  static final UserSessionMap SESSION_MAP = new UserSessionMap();
        private Single() {
        }
        // $FF: synthetic method
        static UserSessionMap access$100() {
            return SESSION_MAP;
        }
    }

}
